package com.ruoyi.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.business.domain.CourseOrders;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CourseOrdersMapper extends BaseMapper<CourseOrders> {
    /**
     * 查询课程预约订单列表
     *
     * @param courseOrders 课程预约单
     * @return 课程预约单集合
     */
    public List<CourseOrders> selectCourseOrdersList(CourseOrders courseOrders);

    public List<CourseOrders> selectCourseOrdersByType(CourseOrders courseOrders);

    public List<CourseOrders> selectCourseOrdersByStatus(CourseOrders courseOrders);

    public List<CourseOrders> selectCourseOrdersByUser(CourseOrders courseOrders);

    public List<CourseOrders> selectCourseOrdersByCourse(CourseOrders courseOrders);

    public List<CourseOrders> selectCourseOrderByTime(CourseOrders courseOrders);

    public List<CourseOrders> selectCourseOrdersByUserId(CourseOrders courseOrders);

    public List<CourseOrders> selectCourseOrdersByUserIdAndCourseId(@Param("courseId") Long courseId, @Param("userIds") Long[] userIds);

    public void deleteBatchByCourseIds(Long[] courseIds);

    public void deleteBatchByUserIds(List<Long> userIds);

    public CourseOrders selectCourseOrdersById(Long id);

    public int insertCourseOrders(CourseOrders courseOrders);

    public int updateCourseOrders(CourseOrders courseOrders);

    public CourseOrders selectCourseOrderById(CourseOrders courseOrders);
}
